package com.fcscs.cservice.ws.client.inroomservice;

import org.apache.log4j.Logger;
import org.springframework.ws.client.core.support.WebServiceGatewaySupport;

import com.fcscs.cservice.ws.schema.inroomservice.GetSpiciesRequest;
import com.fcscs.cservice.ws.schema.inroomservice.GetSpiciesResponse;

public class GetSpyciesClient extends WebServiceGatewaySupport {

	private static final Logger LOG = Logger.getLogger(GetSpyciesClient.class);

	public GetSpiciesResponse test(GetSpiciesRequest req) {
		GetSpiciesResponse resp = (GetSpiciesResponse) getWebServiceTemplate().marshalSendAndReceive(req);
		LOG.info("----------resv spicies list: " + resp.getSpicyList().size());
		return resp;
	}
	
}
